﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using Web.Business;

namespace Web.Comment
{
    public partial class Test : System.Web.UI.Page
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            // bring collection of anonymous type items from a method!
            var u = new { DoublePrice = new double() };

            var v = IQueryableBal.GetInstance()
                                .GetExampleCollection(u);

            System.Web.HttpContext.Current.Response.Write("<br />Start<br />");

            foreach (var item in v)
                    System.Web.HttpContext.Current.Response.Write(item.DoublePrice + "<br />");

            System.Web.HttpContext.Current.Response.Write("<br />End<br />");
        }
    }
}